<template>
	<div class="system-activity-container layout-pd">
		<div>营销活动</div>

		<div style="margin: 20px 30px">
			<el-row :gutter="20" class="activity-title">
				<el-col :span="24">
					<div>营销</div>
				</el-col>
			</el-row>

			<el-row :gutter="20">
				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/coupon')">
						<div class="icon">
							<img :src="coupon" />
						</div>
						<div class="activity-body">
							<div class="title">优惠券</div>
							<div class="subtitle">向客户发送店铺优惠券</div>
						</div>
					</div>
				</el-col>

				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/discount')">
						<div class="icon">
							<img :src="discount" />
						</div>
						<div class="activity-body">
							<div class="title">满额折扣</div>
							<div class="subtitle">满足活动条件享受折扣优惠</div>
						</div>
					</div>
				</el-col>

				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/reduce')">
						<div class="icon">
							<img :src="reduce" />
						</div>
						<div class="activity-body">
							<div class="title">满额立减</div>
							<div class="subtitle">满足活动条件享受立减优惠</div>
						</div>
					</div>
				</el-col>

				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/free_shipping')">
						<div class="icon">
							<img :src="free_shipping" />
						</div>
						<div class="activity-body">
							<div class="title">满额包邮</div>
							<div class="subtitle">满足活动条件享受包邮优惠</div>
						</div>
					</div>
				</el-col>
			</el-row>

			<el-row :gutter="20" class="activity-title">
				<el-col :span="24">
					<div>活动</div>
				</el-col>
			</el-row>
			<el-row :gutter="20">
				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/group')">
						<div class="icon">
							<img :src="groupon" />
						</div>
						<div class="activity-body">
							<div class="title">普通团购</div>
							<div class="subtitle">多人拼团享优惠</div>
						</div>
					</div>
				</el-col>

				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/seckill')">
						<div class="icon">
							<img :src="seckill" />
						</div>
						<div class="activity-body">
							<div class="title">秒杀</div>
							<div class="subtitle">限时特卖引流涨粉</div>
						</div>
					</div>
				</el-col>
			</el-row>

			<el-row :gutter="20" class="activity-title">
				<el-col :span="24">
					<div>应用</div>
				</el-col>
			</el-row>

			<el-row :gutter="20">
				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/score')">
						<div class="icon">
							<img :src="score_shop" />
						</div>
						<div class="activity-body">
							<div class="title">积分商城</div>
							<div class="subtitle">引导客户积分消费有效促活</div>
						</div>
					</div>
				</el-col>

				<el-col :span="6">
					<div class="flex activity-content cursor-pointer" @click="$router.push('/activity/signin')">
						<div class="icon">
							<img :src="signin" />
						</div>
						<div class="activity-body">
							<div class="title">签到</div>
							<div class="subtitle">签到享好礼，客户更活跃</div>
						</div>
					</div>
				</el-col>
			</el-row>
		</div>
	</div>
</template>

<script setup lang="ts">
import coupon from '/@/assets/activity/full_coupon.png';
import reduce from '/@/assets/activity/full_reduce.png';
import discount from '/@/assets/activity/full_discount.png';
import free_shipping from '/@/assets/activity/free_shipping.png';

import groupon from '/@/assets/activity/groupon.png';

import seckill from '/@/assets/activity/seckill.png';

import score_shop from '/@/assets/activity/score_shop.png';

import signin from '/@/assets/activity/signin.png';
</script>

<style scoped>
.system-activity-container {
	height: 100%;
	background-color: white;
}

.activity-title {
	margin-top: 30px;
	margin-bottom: 20px;
	line-height: 20px;
	font-size: 16px;
	color: #262626;
}

.activity-content {
	background: #f5f5f5;
	padding: 18px 20px;
	overflow: hidden;
  transition: all .5s;
}

.activity-content:hover {
	transform: scale(1.05);
}
.icon {
	background-color: rgba(30, 144, 255, 1);
	width: 44px;
	height: 44px;
	border-radius: 4px;
	overflow: hidden;

	img {
		width: 100%;
	}
}

.activity-body {
	margin-left: 12px !important;
	.title {
		line-height: 18px;
		font-size: 14px;
		font-weight: 600;
    color: var(--sd-subtitle);
		margin: 2px 0 6px;
	}

	.subtitle {
		line-height: 16px;
		font-size: 12px;
		color: var(--next-text-color-placeholder);
	}
}
</style>
